package com.stedu.mapper;

import com.stedu.bean.Admin;
import com.stedu.bean.Owner;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AdminMapper {
    //根据用户名和密码查询
    Admin selelecByUsername(String username);
    List<Admin>sellectAll();
    Admin sellectByOid(Integer oid);
    Admin sellectByPid(Integer pid);
    List<Admin>sellectByRoot(Integer root);
    Admin sellectByUsername(String username);
    List<Map<String, Object>>selectTop5DnameAndCount();
    List<Map<String, Object>>selectTop5PnameAndCount();
    int insert(Admin admin);
    int updateByOid(Admin admin);
    int updateByPid(Admin admin);
    int deleteByOid(Integer oid);
    int deleteByPid(Integer pid);
}
